import java.util.Arrays;

public class Test {



    public static void main(String[] args) {
        int[] array = {1,2,34,3,4,5,7,23,12};
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            if(array[i] % 2 == 1){
                count++;
                if(count == 3){
                    System.out.println("true");
                    break;
                }
            if(array[i] % 2 == 0){
                count = 0;
            }
            }
        }
        if(count == 0){
            System.out.println("flase");
        }
    }


    public static void main3(String[] args) {
        int[] array = {4,1,2,1,2};
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            count ^= array[i];
        }
        System.out.println(count);
    }


    public static void main2(String[] args) {
        int[] array = {1,4,3,2,6,5};
        for (int i = 0; i < array.length; i++) {
            int count = 0;
            for (int j = 0; j < array.length-1-i; j++) {
                if(array[j] > array[j+1]){
                    int ret = array[j];
                    array[j] = array[j + 1];
                    array[j + 1] = ret;
                    count++;
                }
            }
            if(count == 0){
                break;
            }
        }
        System.out.println(Arrays.toString(array));
    }



    public static void main1(String[] args) {
        int[] array = {1,2,3,4,5,6};
        int left = 0;
        int right = array.length-1;
        while(left < right){
            while(array[left] % 2 == 1){
                left++;
            }
            while(array[right] % 2 == 0){
                right--;
            }
            if(left < right) {
                int ret = array[left];
                array[left] = array[right];
                array[right] = ret;
            }
        }
        System.out.println(Arrays.toString(array));
    }
}
